<template>
  <div id="app">
    <ul>
      <li v-for="(item, index) in myArr" :key="index">{{ item }}</li>
    </ul>
    <button @click="fn">走一走</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      myArr: ["帅哥", "美女", "程序猿"],
      temp: null,
    };
  },

  mounted() {},

  methods: {
    fn() {
      let newArr = this.myArr.splice(0, 1);
      let str=newArr.join()
      
      this.myArr.push(str)
    },
  },
};
</script>

<style lang="scss" scoped>
</style>